package com.sunxd.limit.core.handlers.preJoinAct;

import com.sunxd.limit.core.annotation.LimitAnnotation;
import com.sunxd.limit.beans.constants.LimitAnnotationGroup;
import com.sunxd.limit.beans.constants.LimitAnnotationKey;
import com.sunxd.limit.beans.params.Context;
import com.sunxd.limit.core.AbstractLimitHandler;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author sun.xd
 * @description: description
 * @date 2024/10/22 16:58
 */
@Order(1)
@Component
@LimitAnnotation(key = LimitAnnotationKey.CITY_LIMIT, group = LimitAnnotationGroup.PRE_ACTIVITY )
public class PreCityLimitHandler extends AbstractLimitHandler {

    @Override
    public Boolean judge(Context context) {
        return Boolean.TRUE;
    }

    @Override
    public String key() {
        return LimitAnnotationKey.CITY_LIMIT;
    }
}
